{template 'common/header'}
{if !$_GPC['operation']}
<div class="main">
        <div style="padding-top: 15px;"></div>
        <div class="panel panel-default">
            <div class="table-responsive panel-body">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width:22%;">昵称和头像</th>
                        <th style="width:10%;">邻取时间</th>
                        <th style="width:10%;">活动名称</th>
                        <th style="width:10%;">连续签到天数</th>
                        <th style="width:10%;">获得积分</th>
                        <th style="width:10%;">操作</th>
                    </tr>
                    </thead>
                    <tbody id="level-list">
					{loop $historylist $item}
                    <tr>
                        <td>{$item['nickname']}&nbsp&nbsp&nbsp<img src="{$item['avatar']}" width=50 height=50/></td>
                        <td>{$item['borntime']}</td>
                        <td>{$item['name']}</td>
                        <td>{$item['daytime']}</td>
                        <td>{$item['point']}</td>
                        <td>
                        	<a href="{php echo $_W['siteroot'].substr($this->createWebUrl('history',array('operation'=>'delete','id'=>$item['id'])),2)}" class="btn btn-primary">删除</a>
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                    
                    <tfoot>
                    <tr>
                        <td colspan="7">
                            <input type="hidden" name="token" value="{$_W['token']}" />
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>
</div>
{/if}